﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Member.master" AutoEventWireup="true"
    CodeFile="Member-orders.aspx.cs" Inherits="Member_orders" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="toptitle">
        我的订单</div>
    <div class="tb-void tb-line" style="overflow: visible;">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tbody>
                <tr>
                    <th width="12%">
                        订单编号</th>
                    <th width="28%">
                        订单商品</th>
                    <th width="10%">
                        收货人</th>
                    <th width="12%">
                        订单金额</th>
                    <th width="12%">
                        下单时间</th>
                    <th width="12%">
                        订单状态</th>
                    <th width="12%">
                        操作</th>
                </tr>
                <%= strConent %>
                <tr>
                    <td style="color: #999;" colspan="7">
                        <div style="text-align: right; color: #999;">
                            未完成的订单数： <strong class="ftx">
                                <asp:Label ID="lblSalesN" runat="server" Text="0"></asp:Label></strong>
                            已完成的订单数： <strong class="ftx">
                                <asp:Label ID="lblSalesY" runat="server" Text="0"></asp:Label></strong>
                            订单总数： <strong class="ftx">
                                <asp:Label ID="lblSalesTotle" runat="server" Text="0"></asp:Label></strong>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <asp:TextBox ID="txtId" runat="server" Text="0" style="display:none;"></asp:TextBox>
        <asp:Button ID="btnDisplay" runat="server" Text="隐藏" OnClick="btnDisplay_Click" style="display:none;"/>
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" style="display:none;"/>
    </div>
    <div id="refund" style="display:none; width:500px; margin-left:270px; margin-top:-55px; background:none repeat scroll 0 0 #F5F4EC;border:2px solid #E5DDC7;padding:1em;position:absolute;">
        <dl>
            <dt style="font-size:14px; font-weight:bold;"><b style="color:Red; margin-right:5px;">*</b>申请退款理由</dt><dd><asp:TextBox ID="txtRefund" runat="server" TextMode="MultiLine" Height="150px" Width="300px"></asp:TextBox>
                <label style="color:#999; padding-left:10px; width:100px;vertical-align:top;">必填，长度在5-250个字之间</label>
            </dd>
        </dl>
        <div style="text-align:center;width:300px;">
            <asp:Button ID="btnSubmin" runat="server" Text="提交申请" OnClick="btnSubmin_Click" />
            <input type="button" value="关闭" onclick="doRefundClose()"/>
       </div>
    </div>
    <script type="text/javascript" language="javascript">
        function ordersUrl(orderId,orderNO)
        {
            window.location.href("order-pay.aspx?orderId="+orderId+"&orderNO="+orderNO);
        }
        function ordersDisplay(orderID)
        {
            document.getElementById("<%= txtId.ClientID %>").value="";
            document.getElementById("<%= txtId.ClientID %>").value=orderID;
            document.getElementById("<%= btnDisplay.ClientID %>").click();
        }
        function doDelete(orderID){
            document.getElementById("<%= txtId.ClientID %>").value="";
            document.getElementById("<%= txtId.ClientID %>").value=orderID;
            document.getElementById("<%= btnDelete.ClientID %>").click();
        }
        function doRefund(orderID){
            document.getElementById("<%= txtId.ClientID %>").value="";
            document.getElementById("<%= txtId.ClientID %>").value=orderID;
            document.getElementById("refund").style.display="block";
        }
        function doRefundClose(){
            document.getElementById("refund").style.display="none";
            document.getElementById("<%= txtRefund.ClientID %>").value="";
        }
    </script>
</asp:Content>
